<?php
// 最近更新的信息内容
class PostsRecent extends CWidget {
    public $node;
    public $limit = 6;
    public function run() {
        $posts = Post::model()->findRecent($this->node, $this->limit);
        $this->render('PostsRecent', array(
            'posts' => $posts,
            'node_id' => $this->node,
            'node_name' => Node::getNodeNameByPk($this->node),
        ));
    }
}
